﻿<html xmlns="http://www.w3.org/1999/xhtml" lang="utf-8">
<html>   
<head>   
<title></title>   
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">   
<!--media=print 这个属性可以在打印时有效-->   
<style media=print>   
.Noprint{display:none;}   
.PageNext{page-break-after:always;}   
</style>   
 
<style>   
.tdp   
{   
border-bottom: 1 solid #000000;   
border-left: 1 solid #000000;   
border-right: 0 solid #ffffff;   
border-top: 0 solid #ffffff;   
}   
.tabp   
{   
border-color: #000000 #000000 #000000 #000000;   
border-style: solid;   
border-top-width: 2px;   
border-right-width: 2px;   
border-bottom-width: 1px;   
border-left-width: 1px;   
}   
.NOPRINT {   
font-family: "宋体";   
font-size:14pt;   
}   
 
</style>   
<script language="javascript" type="text/javascript" src="<?php echo base_url()?>js/lodop/LodopFuncs.js"></script> 

<script language="javascript" type="text/javascript">
    var LODOP; //声明为全局变量  

    function CreatePrintPage(strShipper,strShipper_telephone,strSite,strReceiver,strReceiver_telephone,strDelivery_method,strGoods_name,strGoods_num,strFreight,strDemo,strCod_fee,strOperate_datetime,strShipping_no,strGoods_value){
		LODOP=getLodop();  	    
		LODOP.PRINT_INITA(-22,3,792,382,"套打");
		LODOP.SET_PRINT_PAGESIZE(1,"210mm","102mm","");//设置纸张高度
		LODOP.ADD_PRINT_SETUP_BKIMG("D:\\DOC150710-20150710\\Page0001_看图王.jpg");
		LODOP.SET_SHOW_MODE("BKIMG_WIDTH",990);
		LODOP.SET_SHOW_MODE("BKIMG_HEIGHT",482);
		LODOP.ADD_PRINT_TEXT(116,158,118,27,strShipper);        //发货人姓名
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		LODOP.ADD_PRINT_TEXT(116,392,164,27,strShipper_telephone);   //发货人电话
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		LODOP.ADD_PRINT_TEXT(77,95,232,27,strSite);               //物流站信息
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		LODOP.ADD_PRINT_TEXT(159,158,116,27,strReceiver);        //收货人姓名
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(159,392,164,27,strReceiver_telephone);   //收货人电话
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		LODOP.ADD_PRINT_TEXT(155,607,120,27,strDelivery_method);    //送货方式
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		LODOP.ADD_PRINT_TEXT(238,58,156,27,strGoods_name);         //货物名称
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		LODOP.ADD_PRINT_TEXT(238,233,76,27,strGoods_num);          //件数
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		LODOP.ADD_PRINT_TEXT(238,350,76,27,strGoods_value);          //货物保价
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);		
		LODOP.ADD_PRINT_TEXT(238,526,78,27,strFreight);               //金额
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		LODOP.ADD_PRINT_TEXT(235,622,104,71,strDemo);              //备注
		LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(319,174,111,27,strCod_fee);           //代收货款
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		LODOP.ADD_PRINT_TEXT(77,348,170,27,strOperate_datetime);                //发货日期
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		LODOP.ADD_PRINT_TEXT(38,581,150,27,strShipping_no);           //运单号
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		
		
		 
	};
	function Preview1() {		
		CreatePrintPage('<?php echo $shipping['shipper'] ?>','<?php echo $shipping['shipper_telephone'] ?>','<?php  echo  $shipping['checkin_site_name'].'-'.$shipping['transfer_station'].'-'.$shipping['destination_site_name']; ?>','<?php echo $shipping['receiver'] ?>','<?php echo $shipping['receiver_telephone'] ?>','<?php echo $shipping['delivery_methmod_name'] ?>','<?php echo $shipping['goods_name'] ?>','<?php echo $shipping['goods_num'] ?>','<?php echo $shipping['freight'] ?>','<?php echo $shipping['demo'] ?>','<?php echo $shipping['cod_fee'];?>',' <?php echo $shipping['operate_datetime']; ?>','<?php  echo  $shipping['shipping_no']; ?>','<?php  echo  $shipping['goods_value']; ?>');
	  	LODOP.PREVIEW();		
	};
	function Design1() {		
		CreatePrintPage('<?php echo $shipping['shipper'] ?>','<?php echo $shipping['shipper_telephone'] ?>','<?php  echo  $shipping['checkin_site_name'].'-'.$shipping['transfer_station'].'-'.$shipping['destination_site_name']; ?>','<?php echo $shipping['receiver'] ?>','<?php echo $shipping['receiver_telephone'] ?>','<?php echo $shipping['delivery_methmod_name'] ?>','<?php echo $shipping['goods_name'] ?>','<?php echo $shipping['goods_num'] ?>','<?php echo $shipping['freight'] ?>','<?php echo $shipping['demo'] ?>','<?php echo $shipping['cod_fee'];?>',' <?php echo $shipping['operate_datetime']; ?>','<?php  echo  $shipping['shipping_no']; ?>','<?php  echo  $shipping['goods_value']; ?>');

	//		LODOP.SET_SHOW_MODE("HIDE_ITEM_LIST",true);//设置对象列表默认处于关闭状态
//		LODOP.SET_SHOW_MODE("TEXT_SHOW_BORDER",1); //设置字符编辑框默认为single	
		LODOP.PRINT_DESIGN();		
	};
	function Preview2() {		
		CreatePrintPage('<?php echo $shipping['shipper'] ?>','<?php echo $shipping['shipper_telephone'] ?>','<?php  echo  $shipping['checkin_site_name'].'-'.$shipping['transfer_station'].'-'.$shipping['destination_site_name']; ?>','<?php echo $shipping['receiver'] ?>','<?php echo $shipping['receiver_telephone'] ?>','<?php echo $shipping['delivery_methmod_name'] ?>','<?php echo $shipping['goods_name'] ?>','<?php echo $shipping['goods_num'] ?>','<?php echo $shipping['freight'] ?>','<?php echo $shipping['demo'] ?>','<?php echo $shipping['cod_fee'];?>',' <?php echo $shipping['operate_datetime']; ?>','<?php  echo  $shipping['shipping_no']; ?>','<?php  echo  $shipping['goods_value']; ?>');

	    LODOP.PREVIEW();		
	};			
	function Setup2() {		
		CreatePrintPage('<?php echo $shipping['shipper'] ?>','<?php echo $shipping['shipper_telephone'] ?>','<?php  echo  $shipping['checkin_site_name'].'-'.$shipping['transfer_station'].'-'.$shipping['destination_site_name']; ?>','<?php echo $shipping['receiver'] ?>','<?php echo $shipping['receiver_telephone'] ?>','<?php echo $shipping['delivery_methmod_name'] ?>','<?php echo $shipping['goods_name'] ?>','<?php echo $shipping['goods_num'] ?>','<?php echo $shipping['freight'] ?>','<?php echo $shipping['demo'] ?>','<?php echo $shipping['cod_fee'];?>',' <?php echo $shipping['operate_datetime']; ?>','<?php  echo  $shipping['shipping_no']; ?>','<?php  echo  $shipping['goods_value']; ?>');

	    LODOP.PRINT_SETUP();		
	};
	function Design2() {	
		LODOP.PRINT_DESIGN();
	};	
	function RealPrint() {		
		CreatePrintPage('<?php echo $shipping['shipper'] ?>','<?php echo $shipping['shipper_telephone'] ?>','<?php  echo  $shipping['checkin_site_name'].'-'.$shipping['transfer_station'].'-'.$shipping['destination_site_name']; ?>','<?php echo $shipping['receiver'] ?>','<?php echo $shipping['receiver_telephone'] ?>','<?php echo $shipping['delivery_methmod_name'] ?>','<?php echo $shipping['goods_name'] ?>','<?php echo $shipping['goods_num'] ?>','<?php echo $shipping['freight'] ?>','<?php echo $shipping['demo'] ?>','<?php echo $shipping['cod_fee'];?>',' <?php echo $shipping['operate_datetime']; ?>','<?php  echo  $shipping['shipping_no']; ?>','<?php  echo  $shipping['goods_value']; ?>');

		LODOP.PRINTA(); 
	};	



</script> 


</head>   
 
<body > 
<div class="NOPRINT">  
<center  >   
<p>   
<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0>   
</OBJECT>   
<input type=button value="打印" onclick=    window.print()>   
&nbsp;	<INPUT TYPE="button" value="自动打印" onClick="window.external.Print(0,0);"><br/>
 <a href="JavaScript:Preview1()">打印预览</a>&nbsp;&nbsp; <a href="javascript:Design1()">打印设计</a>&nbsp;&nbsp;<a href="JavaScript:Setup2()">打印维护</a>&nbsp;&nbsp;<br>
<a href="JavaScript:RealPrint()">打印</a>
<br/>   
</p>   
<hr align="center" width="90%" size="1" noshade>   
</center>  
</div> 
<div style="width:820px; font-size:20px; font-weight:bold; margin-left:10px;">
<div style="height: 40px; text-align: left; position: relative;" ><p  style="position: absolute; bottom: 0px; padding: 0px; margin: 0px; margin-left: 30px; width: 775px; height: 30px;">  &nbsp;&nbsp;&nbsp;&nbsp;  <?php  echo  $shipping['checkin_site_name']; ?> &nbsp;&nbsp;  <?php  echo  $shipping['transfer_station']; ?>&nbsp;&nbsp; <?php  echo  $shipping['destination_site_name']; ?>   &nbsp;&nbsp;   <?php echo $shipping['operate_datetime']; ?>  &nbsp;&nbsp;   <?php  echo  $shipping['shipping_no']; ?></p></div>
<div  >  
<table width="818" border="0" cellspacing="0" cellpadding="0" style="font-size:20px; font-weight:bold;">
  <tr>
    <td width="100" height="50">&nbsp;</td>
    <td width="228" align="center">&nbsp;<?php echo $shipping['shipper'] ?></td>
    <td width="78">&nbsp;</td>
    <td width="210" align="center">&nbsp;<?php echo $shipping['shipper_telephone'] ?></td>
    <td width="107">&nbsp;</td>
    <td width="95">&nbsp;</td>
  </tr>
  <tr>
    <td height="50">&nbsp;</td>
    <td align="center">&nbsp;<?php echo $shipping['receiver'] ?></td>
    <td>&nbsp;</td>
    <td align="center">&nbsp;<?php echo $shipping['receiver_telephone'] ?></td>
    <td colspan="2" >&nbsp;<?php echo $shipping['delivery_methmod_name'] ?></td>
    </tr>
</table>


 </div>


<div >
<table width="818" border="0" cellspacing="0" cellpadding="0"  style="font-size:20px; font-weight:bold;">
  <tr>
    <td width="273" height="40">&nbsp;</td>
    <td width="108">&nbsp;</td>
    <td width="142">&nbsp;</td>
    <td width="96">&nbsp;</td>
    <td width="64">&nbsp;</td>
    <td width="135">&nbsp;</td>
  </tr>
  <tr>
    <td height="40">&nbsp;<?php echo $shipping['goods_name'] ?></td>
    <td align="center">&nbsp;<?php echo $shipping['goods_num'] ?></td>
    <td align="center">&nbsp;<?php echo $shipping['goods_value'] ?></td>
    <td align="center">&nbsp;</td>
    <td align="center">&nbsp;<?php echo $shipping['freight'] ?></td>
    <td style="font-size:12px;">&nbsp;<?php echo $shipping['demo'] ?></td>
  </tr>
  <tr>
    <td height="40">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><?php echo $shipping['payment_mode_name'] ?></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>

 </div>
 
 <div >
 <table width="818" border="0" cellspacing="0" cellpadding="0" style="font-size:20px; font-weight:bold;">
  <tr>
    <td width="183" height="20">&nbsp;</td>
    <td width="221" align="center"><?php echo $shipping['cod_fee'];?></td>
    <td width="202">&nbsp;</td>
    <td width="202">&nbsp;</td>
  </tr>
</table>

 </div>
</div>
</body>   
</html>  

